Task 1: Install Visual Studio 2022
Follow these steps to install Visual Studio 2022:
- Visit the website: Visual Studio Download.
- Download the Visual Studio 2022 Community edition.
- If your system has limited resources, check for previous versions at: Older Visual Studio Versions.
-
Run the installer and select the following options:
- ASP.NET and Web Development
- .NET Framework project and item templates
- Additional project templates (previous versions)
Task 2: Install SQL Server Developer or SQL Server Express
To install SQL Server, follow the steps below:
- Visit the SQL Server download page: SQL Server Downloads.
- Download SQL Server Developer or SQL Server Express edition based on your needs.
- Follow the installation instructions provided on the website.
- Ensure that you select mixed mode authentication during the SQL Server installation process.
For systems with limited resources, check: Previous Versions of SQL Server.
Task 3: Install SQL Server Management Studio (SSMS)
Follow these steps to install SQL Server Management Studio (SSMS):
- Visit the SSMS download page: SSMS Full Setup.
- Download the SSMS installer and run the setup (SSMS-Setup-ENU file).
- Complete the installation process for SSMS.
Task 4: Create and Query Project Database
Follow these instructions to work with your project database:
- Create a database in SQL Server using SQL Server Management Studio (SSMS).
- Create a user for the database and set its authorizations to access the newly created database.
- Use the query analyzer to run an SQL script that recreates your project tables and populates them with data. Alternatively, restore your project database if needed.
- In Visual Studio, create a website project using a blank folder.
- Add a web form with separate code to your project, as demonstrated in class.
- Test the web form by running it in the browser.
- Write code to retrieve data from one of your project tables and display the first five records in the browser.
Task 5: Connect and Query SQL Server Directly Using Visual Studio
Follow the instructions to connect to SQL Server directly using Visual Studio:
- Follow the instructions from the Microsoft documentation: Quick Start: Connect and Query SQL Server using SSMS.
- Write the necessary code to connect to your SQL Server instance from within Visual Studio and run a query.